
ITEM.isbase = true
ITEM.class = "base_food"
ITEM.label = "Base Food"
ITEM.description = "The base food item\nCould be used to make a working food..."
ITEM.weight = 1
ITEM.model = "models/Weapons/w_bugbait.mdl"
ITEM.icon = "wintersurvival/icon_bugbait"

ITEM.buff = {
	hunger = -1,
}

//Inventory

ITEM.onInvUsable = function(self)
	return true
end
ITEM.onInvUse = function(self,pl)
	if CLIENT or not pl:WSHas(self.class) then
		return
	end
	local GM = gmod.GetGamemode()
	
	for k,v in pairs(self.buff) do
		pl:WSBuff(k,v)
	end
	pl:WSGive(self.class,-1)
end

//Weapon

function ITEM:onPrimary(pl)
	self:onInvUse(pl)
end
